// api/login.js
import http from '@/utils/request'

/**
 * 登录接口
 * @param {Object} data - 包含 username/password
 */
export function loginApi(data) {
    return http({
        url: '/employee/login',
        method: 'POST',
        data
    })
}

/**
 * 退出登录接口
 */
export function logoutApi() {
    return http({
        url: '/employee/logout',
        method: 'POST'
    })
}
